/*globals TJ, jQuery */
(function ($) {

    function Weather() {
        TJ.Module.call(this);
        var self = this;

        // Module specific logic goes here
        self.main = function ($ctx, callback) {
            self.$bd.append('Sunny, 35°c');
            console.info(self.get_connectors_context());
            
            $('.conConnector1').bind('randomUpdate', function (e, data) {

                self.$bd.html('Sunny, ' + data + '°c');        
            });
            setTimeout(function () {
                callback();
            }, 1000);

        };

        
    }

    TJ.integrate_module(Weather, 'Weather');
}(jQuery));